<script setup>
defineProps({
  gameCategory: Array
})
const emit = defineEmits(["edit"])
const editHandle = () => {
  emit("edit", "gameCategory")
}
</script>

<template>
  <el-descriptions
      border :column="1"
      title="游戏分类">
    <template #extra>
      <el-button @click="editHandle" type="success">修改</el-button>
    </template>
    <el-descriptions-item label="游戏分类">
      <div>
        <el-tag v-for="(category, index) in gameCategory" :key="index" style="margin-right: 5px;">
          {{ category.name }}
        </el-tag>
      </div>
    </el-descriptions-item>
  </el-descriptions>
</template>

<style scoped>

</style>
